]> dgit.raspbian.org Git - gnome-shell.git/commit
messageTray: Split out policy creation
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 1 Nov 2017 18:21:31 +0000 (19:21 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 22 Jan 2019 21:33:46 +0000 (21:33 +0000)
commit8f15193b403fe7caa725096ef21ef88684b975f3
tree4b73082b8829f9bf6cb48737efc02f0423b11e1d
parent467b7c1bcacebdcb90ba916651b5bcc897865e20
messageTray: Split out policy creation

The _createPolicy() method of a subclass usually depends on some
constructor parameters that need to be set before chaining up to
the parent. This works fine with Lang.Class, but will break with
ES6 classes, as "this" is only initialized after chaining up.

Prepare for this by not creating the policy in the constructor,
but when it is first accessed.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/350
js/ui/messageTray.js